import request from '../../utils/request';
let baseRequest_url = "http://127.0.0.1:4890/portal";
//  --------------------------------------------------------------------------------------------------------------- //
// 会员列表分页查询
export const findMemberListPageByLikeNickName = query => {
    return request({
        url: baseRequest_url+'/admin/member/findMemberListPageByLikeNickName',
        method: 'get',
		params: query,
    });
};
// 会员列表查询
export const findMemberList = query => {
    return request({
        url: baseRequest_url+'/admin/member/findMemberList',
        method: 'get',
		params: query,
    });
};
// 会员明细查询
export const findMemberInfoById = query => {
    return request({
        url: baseRequest_url+'/admin/member/findMemberInfoById/'+query,
        method: 'get',
    });
};
// 添加会员账户
export const addMemberInfo = data => {
    return request({
        url: baseRequest_url+'/admin/member/saveMemberInfo',
        method: 'post',
		data: data,
    });
};
// 编辑会员账户
export const saveMemberInfo = data => {
    return request({
        url: baseRequest_url+'/admin/member/saveMemberInfo',
        method: 'put',
		data: data,
    });
};
// 批量更新会员状态
export const batchEditMemberStatus = data => {
    return request({
        url: baseRequest_url+'/admin/member/batchEditMemberStatus',
        method: 'put',
		data: data,
    });
};
// 批量删除会员
export const deleteMember = data => {
    return request({
        url: baseRequest_url+'/admin/member/deleteMember',
        method: 'delete',
		data: data,
    });
};
// 删除会员
export const deleteMemberById = data => {
    return request({
        url: baseRequest_url+'/admin/member/deleteMemberById/data',
        method: 'delete',
    });
};
